﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="BestSell.aspx.cs" Inherits="Default2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <asp:GridView ID="GridView1" runat="server" Width="100%" AllowPaging="True" AutoGenerateColumns="False"
            DataSourceID="ThongKe" CellPadding="4" ForeColor="#333333" GridLines="None">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:ImageField DataImageUrlField="Image" DataImageUrlFormatString="~/Images/SanPham/{0}"
                    HeaderText="Ảnh Bìa">
                    <ControlStyle Height="100px" Width="100px" />
                </asp:ImageField>
                <asp:BoundField DataField="TenSanpham" HeaderText="Tên Sản Phẩm" />
                <asp:BoundField DataField="TenTL" HeaderText="Tên Thể Loại" />
                <asp:BoundField DataField="RetailPrice" HeaderText="Giá Bán" SortExpression="RetailPrice" />
                <asp:BoundField DataField="TenTG" HeaderText="Tên Tác Giả" />
                <asp:BoundField DataField="TenNXB" HeaderText="Tên Nhà XB" />
            </Columns>
            <EditRowStyle BackColor="#7C6F57" />
            <FooterStyle BackColor="#66929D" ForeColor="White" Font-Bold="True" />
            <HeaderStyle BackColor="#66929D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#66929D" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#E3EAEB" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F8FAFA" />
            <SortedAscendingHeaderStyle BackColor="#246B61" />
            <SortedDescendingCellStyle BackColor="#D4DFE1" />
            <SortedDescendingHeaderStyle BackColor="#15524A" />
        </asp:GridView>
        <asp:SqlDataSource ID="ThongKe" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="SP_best_sell_products" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
    </div>
</asp:Content>
